home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / saf / impl / SimpleAssociation.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.5 KB  |  53 lines

  1. package com.extensibility.saf.impl;
  2.  
  3. import com.extensibility.saf.Association;
  4. import com.extensibility.saf.SchemaAdjunct;
  5. import java.util.Properties;
  6. import org.w3c.dom.Element;
  7.  
  8. public class SimpleAssociation implements Association, Tags {
  9.    protected Properties propertyList;
  10.    protected SchemaAdjunct adjunct;
  11.    protected String selector;
  12.    protected int kind;
  13.  
  14.    public SimpleAssociation(SchemaAdjunct var1, int var2, String var3, Properties var4) {
  15.       this.adjunct = var1;
  16.       this.propertyList = var4;
  17.       this.selector = var3;
  18.       this.kind = var2;
  19.    }
  20.  
  21.    public SchemaAdjunct getOwnerAdjunct() {
  22.       return this.adjunct;
  23.    }
  24.  
  25.    public String getSelector() {
  26.       return this.selector;
  27.    }
  28.  
  29.    public int getKind() {
  30.       return this.kind;
  31.    }
  32.  
  33.    public Element getMetaData() {
  34.       return null;
  35.    }
  36.  
  37.    public String getProperty(String var1) {
  38.       return this.propertyList.getProperty(var1);
  39.    }
  40.  
  41.    public int countRepeatedProperty(String var1) {
  42.       return this.getProperty(var1) == null ? 0 : 1;
  43.    }
  44.  
  45.    public void setProperty(String var1, String var2) {
  46.       this.propertyList.put(var1, var2);
  47.    }
  48.  
  49.    public void removeProperty(String var1) {
  50.       this.propertyList.remove(var1);
  51.    }
  52. }
  53.